﻿<?php echo $header; ?>
<div id="bd" role="main">
    <div id="yui-main">
        <div class="yui-b">
            <div class="yui-g" >
                <div id="address" class="main-module">
                    <div class="hd"><h2>我的鼎宴 - 地址</h2></div>
                    <div class="bd">
                        <?php if ($success) { ?>
                            <div class="success msg"><?php echo $success; ?></div>
                        <?php } ?>
                        <?php if ($error_warning) { ?>
                            <div class="warning alert"><?php echo $error_warning; ?></div>
                        <?php } ?>
                        <?php foreach ($addresses as $result) { ?>
                            <table class="green-table">
                                <tr>
                                <td><?php echo $result['address']; ?></td>
                                <td style="text-align: right;">
                                <a href="<?php echo $result['update']; ?>" class="button"><span>修改</span></a>
                                <a href="<?php echo $result['delete']; ?>" class="button"><span>删除</span></a>
                                </td>
                                </tr>
                            </table>
                        <?php } ?>
                        <div class="form-btn clearfix">
                            <a href="<?php echo $insert; ?>" class="button">添加新地址</a>
                            <a href="./" style="margin-left:6px;" class="button">返回主页点餐</a>
                        </div>
                    </div>
                    <div class="ft"></div>
                </div>
            </div>
        </div>
    </div>
    <div class="yui-b">
        <?php echo $myside; ?>
    </div>
</div>


<?php echo $footer; ?>